home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1995 August: Tool Chest / Dev.CD Aug 95 TC / Dev.CD Aug 95 TC.toast / Tool Chest / Interfaces / UniversalInterfaces 2.1B1 / AIncludes / ColorPickerComponents.a < prev    next >
Encoding:
Text File  |  1995-04-18  |  4.8 KB  |  215 lines  |  [TEXT/MPS ]

  1. ;
  2. ;    File:        ColorPickerComponents.a
  3. ;
  4. ;    Contains:    Color Picker Component Interfaces.
  5. ;
  6. ;    Version:    Technology:    System 7.5
  7. ;                Package:    Universal Interfaces 2.1ß1 in “MPW Prerelease” on ETO #17
  8. ;
  9. ;    Copyright:    © 1984-1995 by Apple Computer, Inc.
  10. ;                All rights reserved.
  11. ;
  12. ;    Bugs?:        If you find a problem with this file, use the Apple Bug Reporter
  13. ;                stack.  Include the file and version information (from above)
  14. ;                in the problem description and send to:
  15. ;                    Internet:    apple.bugs@applelink.apple.com
  16. ;                    AppleLink:    APPLE.BUGS
  17. ;
  18. ;
  19.  
  20.     IF &TYPE('__COLORPICKERCOMPONENTS__') = 'UNDEFINED' THEN
  21. __COLORPICKERCOMPONENTS__ SET 1
  22.  
  23.  
  24.     IF &TYPE('__COLORPICKER__') = 'UNDEFINED' THEN
  25.     include 'ColorPicker.a'
  26.     ENDIF
  27. ;        include 'Quickdraw.a'                                        ;
  28. ;            include 'Types.a'                                        ;
  29. ;                include 'ConditionalMacros.a'                        ;
  30. ;            include 'MixedMode.a'                                    ;
  31. ;            include 'QuickdrawText.a'                                ;
  32. ;        include 'Windows.a'                                        ;
  33. ;            include 'Memory.a'                                        ;
  34. ;            include 'Events.a'                                        ;
  35. ;                include 'OSUtils.a'                                ;
  36. ;            include 'Controls.a'                                    ;
  37. ;                include 'Menus.a'                                    ;
  38. ;        include 'Dialogs.a'                                        ;
  39. ;            include 'Errors.a'                                        ;
  40. ;            include 'TextEdit.a'                                    ;
  41. ;        include 'CMApplication.a'                                    ;
  42. ;            include 'Files.a'                                        ;
  43. ;            include 'Printing.a'                                    ;
  44. ;            include 'CMICCProfile.a'                                ;
  45. ;        include 'Balloons.a'                                        ;
  46.  
  47.     IF &TYPE('__COMPONENTS__') = 'UNDEFINED' THEN
  48.     include 'Components.a'
  49.     ENDIF
  50.  
  51. kPickerComponentType            EQU        'cpkr'
  52.  
  53. kInitPicker                        EQU        0
  54. kTestGraphicsWorld                EQU        1
  55. kGetDialog                        EQU        2
  56. kGetItemList                    EQU        3
  57. kGetColor                        EQU        4
  58. kSetColor                        EQU        5
  59. kEvent                            EQU        6
  60. kEdit                            EQU        7
  61. kSetVisibility                    EQU        8
  62. kDrawPicker                        EQU        9
  63. kItemHit                        EQU        10
  64. kSetBaseItem                    EQU        11
  65. kGetProfile                        EQU        12
  66. kSetProfile                        EQU        13
  67. kGetPrompt                        EQU        14
  68. kSetPrompt                        EQU        15
  69. kGetIconData                    EQU        16
  70. kGetEditMenuState                EQU        17
  71. kSetOrigin                        EQU        18
  72. kExtractHelpItem                EQU        19
  73.  
  74. ;
  75. ; pascal long InitPicker(ComponentInstance thePicker, PickerInitData *data)
  76. ;
  77.     IF GENERATINGCFM THEN
  78.         IMPORT_CFM_FUNCTION    InitPicker
  79.     ENDIF
  80.  
  81. ;
  82. ; pascal DialogPtr GetDialog(ComponentInstance thePicker)
  83. ;
  84.     IF GENERATINGCFM THEN
  85.         IMPORT_CFM_FUNCTION    GetDialog
  86.     ENDIF
  87.  
  88. ;
  89. ; pascal long TestGraphicsWorld(ComponentInstance thePicker, PickerInitData *data)
  90. ;
  91.     IF GENERATINGCFM THEN
  92.         IMPORT_CFM_FUNCTION    TestGraphicsWorld
  93.     ENDIF
  94.  
  95. ;
  96. ; pascal long GetTheColor(ComponentInstance thePicker, ColorType whichColor, PMColorPtr color)
  97. ;
  98.     IF GENERATINGCFM THEN
  99.         IMPORT_CFM_FUNCTION    GetTheColor
  100.     ENDIF
  101.  
  102. ;
  103. ; pascal long SetTheColor(ComponentInstance thePicker, ColorType whichColor, PMColorPtr color)
  104. ;
  105.     IF GENERATINGCFM THEN
  106.         IMPORT_CFM_FUNCTION    SetTheColor
  107.     ENDIF
  108.  
  109. ;
  110. ; pascal long DoEvent(ComponentInstance thePicker, EventData *data)
  111. ;
  112.     IF GENERATINGCFM THEN
  113.         IMPORT_CFM_FUNCTION    DoEvent
  114.     ENDIF
  115.  
  116. ;
  117. ; pascal long DoEdit(ComponentInstance thePicker, EditData *data)
  118. ;
  119.     IF GENERATINGCFM THEN
  120.         IMPORT_CFM_FUNCTION    DoEdit
  121.     ENDIF
  122.  
  123. ;
  124. ; pascal long SetVisibility(ComponentInstance thePicker, Boolean visible)
  125. ;
  126.     IF GENERATINGCFM THEN
  127.         IMPORT_CFM_FUNCTION    SetVisibility
  128.     ENDIF
  129.  
  130. ;
  131. ; pascal long DisplayPicker(ComponentInstance thePicker)
  132. ;
  133.     IF GENERATINGCFM THEN
  134.         IMPORT_CFM_FUNCTION    DisplayPicker
  135.     ENDIF
  136.  
  137. ;
  138. ; pascal long ItemHit(ComponentInstance thePicker, ItemHitData *data)
  139. ;
  140.     IF GENERATINGCFM THEN
  141.         IMPORT_CFM_FUNCTION    ItemHit
  142.     ENDIF
  143.  
  144. ;
  145. ; pascal long GetItemList(ComponentInstance thePicker)
  146. ;
  147.     IF GENERATINGCFM THEN
  148.         IMPORT_CFM_FUNCTION    GetItemList
  149.     ENDIF
  150.  
  151. ;
  152. ; pascal long SetBaseItem(ComponentInstance thePicker, short baseItem)
  153. ;
  154.     IF GENERATINGCFM THEN
  155.         IMPORT_CFM_FUNCTION    SetBaseItem
  156.     ENDIF
  157.  
  158. ;
  159. ; pascal CMProfileHandle GetTheProfile(ComponentInstance thePicker)
  160. ;
  161.     IF GENERATINGCFM THEN
  162.         IMPORT_CFM_FUNCTION    GetTheProfile
  163.     ENDIF
  164.  
  165. ;
  166. ; pascal long SetTheProfile(ComponentInstance thePicker, CMProfileHandle profile)
  167. ;
  168.     IF GENERATINGCFM THEN
  169.         IMPORT_CFM_FUNCTION    SetTheProfile
  170.     ENDIF
  171.  
  172. ;
  173. ; pascal long GetPrompt(ComponentInstance thePicker, Str255 prompt)
  174. ;
  175.     IF GENERATINGCFM THEN
  176.         IMPORT_CFM_FUNCTION    GetPrompt
  177.     ENDIF
  178.  
  179. ;
  180. ; pascal long SetPrompt(ComponentInstance thePicker, Str255 prompt)
  181. ;
  182.     IF GENERATINGCFM THEN
  183.         IMPORT_CFM_FUNCTION    SetPrompt
  184.     ENDIF
  185.  
  186. ;
  187. ; pascal long GetIconData(ComponentInstance thePicker, PickerIconData *data)
  188. ;
  189.     IF GENERATINGCFM THEN
  190.         IMPORT_CFM_FUNCTION    GetIconData
  191.     ENDIF
  192.  
  193. ;
  194. ; pascal long GetEditMenuState(ComponentInstance thePicker, PickerMenuState *mState)
  195. ;
  196.     IF GENERATINGCFM THEN
  197.         IMPORT_CFM_FUNCTION    GetEditMenuState
  198.     ENDIF
  199.  
  200. ;
  201. ; pascal long SetTheOrigin(ComponentInstance thePicker, Point where)
  202. ;
  203.     IF GENERATINGCFM THEN
  204.         IMPORT_CFM_FUNCTION    SetTheOrigin
  205.     ENDIF
  206.  
  207. ;
  208. ; pascal long ExtractHelpItem(ComponentInstance thePicker, short itemNo, short whichMsg, HelpItemInfo *helpInfo)
  209. ;
  210.     IF GENERATINGCFM THEN
  211.         IMPORT_CFM_FUNCTION    ExtractHelpItem
  212.     ENDIF
  213.  
  214.     ENDIF ; __COLORPICKERCOMPONENTS__
  215.